package com.ruoyi.zuzhi.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.zuzhi.mapper.PositionCategoryMapper;
import com.ruoyi.zuzhi.domain.PositionCategory;
import com.ruoyi.zuzhi.service.IPositionCategoryService;

/**
 * 职位类别Service业务层处理
 * 
 * @author lgy
 * @date 2025-05-30
 */
@Service
public class PositionCategoryServiceImpl implements IPositionCategoryService 
{
    @Autowired
    private PositionCategoryMapper positionCategoryMapper;

    /**
     * 查询职位类别
     * 
     * @param id 职位类别主键
     * @return 职位类别
     */
    @Override
    public PositionCategory selectPositionCategoryById(Long id)
    {
        return positionCategoryMapper.selectPositionCategoryById(id);
    }

    /**
     * 查询职位类别列表
     * 
     * @param positionCategory 职位类别
     * @return 职位类别
     */
    @Override
    public List<PositionCategory> selectPositionCategoryList(PositionCategory positionCategory)
    {
        return positionCategoryMapper.selectPositionCategoryList(positionCategory);
    }

    /**
     * 新增职位类别
     * 
     * @param positionCategory 职位类别
     * @return 结果
     */
    @Override
    public int insertPositionCategory(PositionCategory positionCategory)
    {
        return positionCategoryMapper.insertPositionCategory(positionCategory);
    }

    /**
     * 修改职位类别
     * 
     * @param positionCategory 职位类别
     * @return 结果
     */
    @Override
    public int updatePositionCategory(PositionCategory positionCategory)
    {
        return positionCategoryMapper.updatePositionCategory(positionCategory);
    }

    /**
     * 批量删除职位类别
     * 
     * @param ids 需要删除的职位类别主键
     * @return 结果
     */
    @Override
    public int deletePositionCategoryByIds(Long[] ids)
    {
        return positionCategoryMapper.deletePositionCategoryByIds(ids);
    }

    /**
     * 删除职位类别信息
     * 
     * @param id 职位类别主键
     * @return 结果
     */
    @Override
    public int deletePositionCategoryById(Long id)
    {
        return positionCategoryMapper.deletePositionCategoryById(id);
    }
}
